package cn.ainit.fx.other.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * OtherOutstockItem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "FX_OTHER_OUTSTOCK_ITEM")
public class OtherOutstockItem implements java.io.Serializable {

	// Fields

	private String osoItemId;
	private OtherOutstock otherOutstock;
	private String stockId;
	private String spId;
	private String spUnit;
	private Long spAmount;
	private Long spRealPrice;
	private Long taxRate;
	private Long taxMoney;
	private Long realMoney;
	private Long spDiscount;
	private Long spPrice;
	private String memo;
	private Long realMoneyItem;
	private Long totalMoneyItme;
	private Long packages;
 
	@Id
	@Column(name = "OSO_ITEM_ID", unique = true, nullable = false, length = 32)
	public String getOsoItemId() {
		return this.osoItemId;
	}

	public void setOsoItemId(String osoItemId) {
		this.osoItemId = osoItemId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "OSO_ID")
	public OtherOutstock getOtherOutstock() {
		return this.otherOutstock;
	}

	public void setOtherOutstock(OtherOutstock otherOutstock) {
		this.otherOutstock = otherOutstock;
	}

	@Column(name = "STOCK_ID", length = 32)
	public String getStockId() {
		return this.stockId;
	}

	public void setStockId(String stockId) {
		this.stockId = stockId;
	}

	@Column(name = "SP_ID", length = 32)
	public String getSpId() {
		return this.spId;
	}

	public void setSpId(String spId) {
		this.spId = spId;
	}

	@Column(name = "SP_UNIT", length = 32)
	public String getSpUnit() {
		return this.spUnit;
	}

	public void setSpUnit(String spUnit) {
		this.spUnit = spUnit;
	}

	@Column(name = "SP_AMOUNT", precision = 18, scale = 0)
	public Long getSpAmount() {
		return this.spAmount;
	}

	public void setSpAmount(Long spAmount) {
		this.spAmount = spAmount;
	}

	@Column(name = "SP_REAL_PRICE", precision = 18, scale = 0)
	public Long getSpRealPrice() {
		return this.spRealPrice;
	}

	public void setSpRealPrice(Long spRealPrice) {
		this.spRealPrice = spRealPrice;
	}

	@Column(name = "TAX_RATE", precision = 18, scale = 0)
	public Long getTaxRate() {
		return this.taxRate;
	}

	public void setTaxRate(Long taxRate) {
		this.taxRate = taxRate;
	}

	@Column(name = "TAX_MONEY", precision = 18, scale = 0)
	public Long getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(Long taxMoney) {
		this.taxMoney = taxMoney;
	}

	@Column(name = "REAL_MONEY", precision = 18, scale = 0)
	public Long getRealMoney() {
		return this.realMoney;
	}

	public void setRealMoney(Long realMoney) {
		this.realMoney = realMoney;
	}

	@Column(name = "SP_DISCOUNT", precision = 18, scale = 0)
	public Long getSpDiscount() {
		return this.spDiscount;
	}

	public void setSpDiscount(Long spDiscount) {
		this.spDiscount = spDiscount;
	}

	@Column(name = "SP_PRICE", precision = 18, scale = 0)
	public Long getSpPrice() {
		return this.spPrice;
	}

	public void setSpPrice(Long spPrice) {
		this.spPrice = spPrice;
	}

	@Column(name = "MEMO", length = 500)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "REAL_MONEY_ITEM", precision = 18, scale = 0)
	public Long getRealMoneyItem() {
		return this.realMoneyItem;
	}

	public void setRealMoneyItem(Long realMoneyItem) {
		this.realMoneyItem = realMoneyItem;
	}

	@Column(name = "TOTAL_MONEY_ITME", precision = 18, scale = 0)
	public Long getTotalMoneyItme() {
		return this.totalMoneyItme;
	}

	public void setTotalMoneyItme(Long totalMoneyItme) {
		this.totalMoneyItme = totalMoneyItme;
	}


	@Column(name = "PACKAGE", precision = 18, scale = 0)
	public Long getPackages() {
		return packages;
	}
	
	public void setPackages(Long packages) {
		this.packages = packages;
	}
	 
 
}